<!DOCTYPE html>
<html>
<head>
    <% include ../include/css_header.html %>
    <style>
        .user_bg{
            background: url("/fj_bg_4.jpg") no-repeat;
            background-position: center top;
            background-size: 100% 100px;
            height: 100%;
            position: absolute;
            width: 100%;
            background-color: #fff;
        }
        .card_headlogo{
            border: 2px solid #e0e0e0;
            bottom: -32px;
            position: absolute;
        }
    </style>
</head>
<body>
    <div class="container user_bg">
        <div class="row">
            <div class="col-xs-12" style="height: 100px;position: relative;">
                <img src="/img/<%=user.id %>" alt="logo" class="img-circle card_headlogo" onError="this.src='/fj_default_headimg';"/>
            </div>
            <div class="col-xs-12" style="margin-top: 50px;">
                <form role="form">
                    <div class="form-group">
                        <label>真实姓名</label>
                        <input type="text" id="name" class="form-control" placeholder=""
                               value="<%=card.name?card.name:''%>">
                    </div>
                    <div class="form-group">
                        <label>公司名称</label>
                        <input type="text" id="company" class="form-control" placeholder="未来全球500强"
                               value="<%=card.company?card.company:''%>">
                    </div>
                    <div class="form-group">
                        <label>当前职位</label>
                        <input type="text" id="position" class="form-control" placeholder="出任CEO"
                               value="<%=card.position?card.position:''%>">
                    </div>
                    <div class="form-group">
                        <label>联系电话</label>
                        <input type="text" id="mobile" class="form-control" placeholder=""
                               value="<%=card.mobile?card.mobile:''%>">
                    </div>
                    <div class="form-group">
                        <label>Email</label>
                        <input type="text" id="email" class="form-control" placeholder=""
                               value="<%=card.email?card.email:''%>">
                    </div>
                    <div class="form-group">
                        <label>所在行业</label>
                        <input type="text" id="business" class="form-control" placeholder=""
                               value="<%=card.business?card.business:''%>">
                    </div>
                    <div class="form-group">
                        <label>产品/服务</label>
                        <input type="text" id="product" class="form-control" placeholder=""
                               value="<%=card.product?card.product:''%>">
                    </div>
                    <div class="form-group">
                        <label>地址</label>
                        <input type="text" id="address" class="form-control" placeholder=""
                               value="<%=card.address?card.address:''%>">
                    </div>
                    <button type="button" class="btn btn-success btn-block" data-loading-text="Loading..." id="submit">保存并设为默认资料</button>
                    <button type="button" class="btn btn-block" id="goback">取消并返回</button>
                    <input type="hidden" id="cardId" value="<%=card?card.id:'' %>" />
                </form>
            </div>
        </div>
        <% include ../include/copyright.html %>
    </div>
    <% include ../include/js_footer.html %>
    <script src="<%=_locals.static_js_path %>/newcard.js"></script>
    <script>
        var userId = '<%=user.id %>';
    </script>
</body>
</html>